home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bchelp10.zip / TI356.ASC < prev    next >
Text File  |  1991-09-11  |  7KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT : TURBO C                                    NUMBER : 356
  9.   VERSION : 1.0
  10.   OS : PC-DOS
  11.   DATE : July 9, 1987                                 PAGE : 1/4
  12.  
  13.   TITLE  : STRUCTURE PUSH FLOATING POINT PATCH
  14.  
  15.  
  16.  
  17.  
  18.   The following patch solves a problem with pushing structures with
  19.   floating point elements onto the stack in Turbo C.
  20.  
  21.   To  apply  this  patch,  you  will  need  to  use the DOS utility
  22.   DEBUG.COM. You may obtain a copy of DEBUG.COM from  one  of  your
  23.   original PC-DOS or MS-DOS diskettes.
  24.  
  25.   NOTE:
  26.  
  27.   1.   Do not patch your original Turbo C disk, use  a  working  or
  28.        backup copy of TCC.EXE and TC.EXE for this patch.
  29.  
  30.   2.   DEBUG  is  not  sensitive  to  upper  and  lower  case.  All
  31.        addresses are listed in upper case for ease of readibility.
  32.  
  33.   3.   XXXX,YYYY,ZZZZ are  hexidecimal  digits  returned  by DEBUG.
  34.        You must replace these  digits  accordingly  when  typing in
  35.        your commands.
  36.  
  37.   4.   While in DEBUG, the prompt will appear as a dash (-).
  38.  
  39.   5.   If you do not  receive  the  appropriate response, press "q"
  40.        followed by  <Enter>, to exit from DEBUG. Check your version
  41.        number and, if correct, try again.
  42.  
  43.   6.   TCC.EXE and TC.EXE will not fit together onto  a  360K disk.
  44.        To patch both  programs  on  a  floppy disk, you may need to
  45.        copy TCC.EXE and DEBUG.COM onto  one  disk  and  perform the
  46.        patch. Save  the patched version of TCC.EXE to another disk.
  47.        Repeat the same steps using TC.EXE.
  48.  
  49.   At the DOS  prompt, type the following information  exactly as it
  50.   appears (Conclude each line by pressing <Enter>).}
  51.  
  52.                                Patch for TCC.EXE
  53.  
  54.   Type the following:          You will see:
  55.  
  56.   ren tcc.exe tcc.xex<Enter>   A>
  57.  
  58.   debug tcc.xex<Enter>         -
  59.  
  60.   r<Enter>                     ... CS=XXXX ...
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.                                -
  85.  
  86.   h XXXX 1C0C<Enter>           YYYY  ZZZZ
  87.                                -
  88.  
  89.   e YYYY:2FAD<Enter>           YYYY:2FAD   25.
  90.  
  91.   A9<Space>                    YYYY:2FAD   25.A9   01.
  92.   <Space>                      YYYY:2FAD   25.A9   01.     00.
  93.   <Space>                      YYYY:2FB0   81.
  94.   74<Space>                    YYYY:2FB0   81.74   E2.
  95.   0B<Space>                    YYYY:2FB0   81.74   E2.0B   00.
  96.   40<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.
  97.   26<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.26
  98.                                            0B.
  99.   83<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.26
  100.                                            0B.83   D0.
  101.   47<Space>                    YYYY:2FB0   81.74   E2.0B   00.40   00.26
  102.                                            0B.83   D0.47   74.
  103.   6<Space>                     YYYY:2FB0   81.74   E2.0B   00.40   00.26
  104.                                            0B.83   D0.47   74.6    0A.
  105.   1<Space>                     YYYY:2FB8   26.
  106.   <Space>                      YYYY:2FB8   26.     83.
  107.   <Space>                      YYYY:2FB8   26.     83.     47.
  108.   57<Space>                    YYYY:2FB8   26.     83.     47.57   06.
  109.   8<Space>                     YYYY:2FB8   26.     83.     47.57   06.8
  110.                                            01.
  111.   0<Space>                     YYYY:2FB8   26.     83.     47.57   06.8
  112.                                            01.00   26.
  113.   29<Space>                    YYYY:2FB8   26.     83.     47.57   06.8
  114.                                            01.00   26.29   83.
  115.   6<Space>                     YYYY:2FB8   26.     83.     47.57   06.8
  116.                                            01.00   26.29   83.6    57.
  117.   54<Space>                    YYYY:2FC0   08.
  118.   74<Space>                    YYYY:2FC0   08.74   00.
  119.   90<Enter>                    YYYY:2FC0   08.74   00.90
  120.                                -}
  121.  
  122.   w<Enter>                     Writing 2948A bytes
  123.                                -
  124.  
  125.   q<Enter>                     A>
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.   ren tcc.xex tcc.exe<Enter>   A>
  151.  
  152.                                Patch for TC.EXE
  153.  
  154.   Type the following:          You will see:
  155.  
  156.   ren tc.exe tc.xex<Enter>     A>
  157.  
  158.   debug tc.xex<Enter>          -
  159.  
  160.   r<Enter>                     ... CS=XXXX ...
  161.                                -
  162.  
  163.   h XXXX 2557<Enter>           YYYY  ZZZZ
  164.                                -
  165.  
  166.   e YYYY:2FA4<Enter>           YYYY:2FA4   25.
  167.  
  168.   A9<Space>                    YYYY:2FA4   25.A9   01.
  169.   <Space>                      YYYY:2FA4   25.A9   01.     00.
  170.   <Space>                      YYYY:2FA4   25.A9   01.     00.     81.
  171.   74<Space>                    YYYY:2FA8   E2.
  172.   0B<Space>                    YYYY:2FA8   E2.0B   00.
  173.   40<Space>                    YYYY:2FA8   E2.0B   00.40   00.
  174.   26<Space>                    YYYY:2FA8   E2.0B   00.40   00.26   0B.
  175.   83<Space>                    YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  176.                                            D0.
  177.   47<Space>                    YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  178.                                            D0.47   74.
  179.   6<Space>                     YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  180.                                            D0.47   74.6    0A.
  181.   1<Space>                     YYYY:2FA8   E2.0B   00.40   00.26   0B.83
  182.                                            D0.47   74.6    0A.1    26.
  183.   <Space>                      YYYY:2FB0   83.
  184.   <Space>                      YYYY:2FB0   83.     47.
  185.   57<Space>                    YYYY:2FB0   83.     47.57   06.
  186.   8<Space>                     YYYY:2FB0   83.     47.57   06.8    01.
  187.   0<Space>                     YYYY:2FB0   83.     47.57   06.8    01.0
  188.                                            26.}
  189.  
  190.   29<Space>                    YYYY:2FB0   83.     47.57   06.8    01.00
  191.                                            26.29   83.
  192.   6<Space>                     YYYY:2FB0   83.     47.57   06.8    01.00
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.                                            26.29   83.6    57.
  217.   C<Space>                     YYYY:2FB0   83.     47.57   06.8    01.00
  218.                                            26.29   83.6    57.C    08.
  219.   A3<Space>                    YYYY:2FB8   00.
  220.   90<Enter>                    YYYY:2FB8   00.90
  221.                                -
  222.  
  223.   w<Enter>                     Writing 38759 bytes
  224.                                -
  225.  
  226.   q<Enter>                     A>
  227.  
  228.   ren tc.xex tc.exe<Enter>     A>
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.